System.Collections.IDictionary.Remove Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Removes the key (and associated value) from the collection that is equal to the passed in key. If no key in the dictionary is equal to the passed key, the dictionary is unchanged. Calls the (overridden) Remove method. If key is not of the correct TKey for the dictionary, the dictionary is unchanged.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
private void IDictionary.Remove(
	Object key
)
Visual Basic (Declaration)
Private Sub System.Collections.IDictionary.Remove ( _
	key As Object _
) Implements IDictionary.Remove
Visual C++
private:
virtual void System.Collections.IDictionary.Remove (
	Object^ key
) sealed = IDictionary::Remove

Parameters

key
Object
The key to remove.

Exceptions

ExceptionCondition
System..::ArgumentExceptionkey could not be converted to TKey.

See Also